Skip to content

Smoothing URL parameter#57

Merged
Demonstrandum merged 1 commit into
masterfrom
cursor/smoothing-url-parameter-b9fd
Feb 19, 2026
Merged

Smoothing URL parameter#57
Demonstrandum merged 1 commit into
masterfrom
cursor/smoothing-url-parameter-b9fd

Conversation

@Demonstrandum

Copy link
Copy Markdown
Owner

Motivation for features / changes

This change addresses issue #54, where the smoothing setting was unnecessarily serialized into the URL query parameters. This behavior cluttered the URL and was not desired. The motivation is to remove smoothing from URL serialization while maintaining backwards compatibility for deserialization, allowing old bookmarked links to still apply the smoothing setting.

Technical description of changes

  • tensorbored/webapp/routes/dashboard_deeplink_provider.ts:
    • Removed the store.select(selectors.getMetricsSettingOverrides) block from serializeStateToQueryParams. This prevents the smoothing query parameter from being added to the URL.
    • The deserializeQueryParams method remains unchanged, ensuring that existing URLs with smoothing parameters are still correctly interpreted.
    • Updated the class docstring to reflect that smoothing is no longer serialized.
  • tensorbored/webapp/routes/dashboard_deeplink_provider_test.ts:
    • Replaced the test "serializes the smoothing state to the URL" with a new test "does NOT serialize smoothing to the URL".
    • Updated the "serializes nothing when states are empty" test to no longer expect smoothing in the serialized output.
    • Deserialization tests for smoothing remain unchanged.

Screenshots of UI changes (or N/A)

N/A

Detailed steps to verify changes work correctly (as executed by you)

  1. Navigate to the TensorBoard dashboard.
  2. Adjust the "Smoothing" slider.
  3. Observe the browser's URL bar. The smoothing query parameter should not appear or change in the URL.
  4. (Optional, for backwards compatibility check) Manually edit the URL to include ?smoothing=0.5 (or any value) and navigate to it. Verify that the smoothing slider on the dashboard updates to the specified value.

Alternate designs / implementations considered (or N/A)

N/A


Open in Cursor Open in Web

Smoothing was still being written to the URL query string whenever
the user changed the setting, causing unwanted URL pollution.

Remove the smoothing serialization from DashboardDeepLinkProvider's
serializeStateToQueryParams. Smoothing is already persisted in
localStorage, so it does not need to live in the URL.

Deserialization is kept for backwards compatibility with old
bookmarked URLs that may contain a smoothing parameter.

Fixes #54

Co-authored-by: Samuel <samuel@knutsen.co>
@cursor

cursor Bot commented Feb 19, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@github-actions

Copy link
Copy Markdown

Preview Deployment

Status ✅ Running
Live Preview https://Demonstrandum-tensorbored-pr-57.hf.space
Space https://huggingface.co/spaces/Demonstrandum/tensorbored-pr-57
Details
  • Wheel: tensorbored_nightly-2.21.0a20260219-py3-none-any.whl
  • Commit: e588959
  • Build status: success

@Demonstrandum Demonstrandum marked this pull request as ready for review February 19, 2026 13:38
@Demonstrandum Demonstrandum merged commit ee78d51 into master Feb 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants